package org.example.studentsystem_back.vo.userManageVo.smallVo;

import lombok.Getter;
import lombok.Setter;
import org.example.studentsystem_back.domain.Freshmen;

@Setter
@Getter
public class PageFreshmanItem extends Freshmen {
    private String name;
    public void setDataByFreshman(Freshmen freshman) {
        this.setEducation(freshman.getEducation());
        this.setEnrollmentDate(freshman.getEnrollmentDate());
        this.setFreshmanId(freshman.getFreshmanId());
        this.setHasCheckedIn(freshman.getHasCheckedIn());
        this.setMajor(freshman.getMajor());
        this.setPhone(freshman.getPhone());
        this.setPreviousSchool(freshman.getPreviousSchool());
        this.setSourceLocation(freshman.getSourceLocation());
        this.setUserid(freshman.getUserid());
    }
}
